<div class="container">
    <form class="form-horizontal" name="backendUserForm">
        <br>
        <br>

        <div class="form-group">
            <label for="inputLoginId" class="control-label col-xs-2">城市:</label>

            <div class="col-xs-5">
                <select id="aa" ng-model="city">
                    <option>上海</option>
                    <option>北京</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="inputLoginId" class="control-label col-xs-2">小区名称:</label>

            <div class="col-xs-5">
                <input id="name_search" type="text" class="form-control"
                       ng-model="community.name" required
                       ng-change="nameChange(community.name)">
            </div>
        </div>
        <div class="form-group">
            <label for="inputUserName" class="control-label col-xs-2">小区地址:</label>

            <div class="col-xs-5">
                <input type="text" class="form-control" ng-model="community.address" id="community_address"
                       required>
            </div>
        </div>
        <div class="form-group">
            <label for="inputUserName" class="control-label col-xs-2">经纬度:</label>

            <div class="col-xs-5">
                <input type="text" class="form-control" ng-model="community.lng" id="community_lng"
                       required disabled>
                <br>
                <input type="text" class="form-control" ng-model="community.lat" id="community_lat"
                       required disabled>
            </div>
        </div>
        <div class="form-group">
            <label for="inputUserName" class="control-label col-xs-2">小区logo:</label>

            <div class="col-xs-5">
                <input type="file" id="pict" required
                       onchange="angular.element(this).scope().selectFile(this.files)" accept="image/*">
            </div>
        </div>
        <div class="form-group">
            <label for="inputUserName" class="control-label col-xs-2">户数:</label>

            <div class="col-xs-5">
                <input type="text" class="form-control" ng-model="community.households" id="inventory"
                       required>
            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-2" for="inputUserName">是否显示单元号开关：</label>
            <div class="col-xs-5">
            <input type="checkbox" ng-model="community.unitSwitch"></div>
        </div>

        <div class="modal-footer">
            <button id="saveButton" type="submit" class="btn btn-default"
                    ng-click="saveCommunity(community)">保存
            </button>
            <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="cancelAddCommunity()">取消
            </button>
        </div>
    </form>
</div>
